﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI.WebControls;
using System.IO;

namespace CoolCode.Web.UI.Views
{
    public class ViewHelper
    {
        public static void BindFilePath(HyperLink link, string path)
        {
           string fileName =Path.GetFileName(path) ;
            link.Text ="点击下载:"+ fileName ;
            link.NavigateUrl = "~/WebServices/FileHandler.ashx?type=excel&key=" + fileName;
            link.Visible = true;
        }
    }
}
